/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  color: #000;
  background-color: #FDEFF4;
}
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: #6b4f4f;
  font-weight: 300;
  font-size: 14px;
  transition: color 0.3s ease;
}

a:hover {
  color: #e29578;
}

/* Hero Section Styles */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, #ffb997 0%, #d66dcb 50%, #5b5fef 100%);
  min-height: 70vh;
  gap: 3rem;
}

@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    padding: 5rem 5rem;
  }
}

.hero-content {
  max-width: 400px;
  text-align: left;
}

h1 {
  /*font-family: 'Altasi', serif;*/
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 38px;
  }
}

.hero-content p {
  font-weight: 200;
  font-size: 24px;
  line-height: 1.5;
  max-width: 360px;
  text-align: justify;
}

.animation-container {
  display: flex;
  flex-direction: column;
  align-items: right;
  gap: 0.5rem;
}

.rotated-gif {
  width: 700px;
  height: 700px;
  object-fit: contain;
  border-radius: 0;
  display: block;
  padding-left: 10rem;
}

/* Latest Issue Section */
.latest-issue-section {
  background-color: #FDEFF4;
  padding: 10rem 1rem;
  display: flex;
  justify-content: center;
  padding-left: 10rem;
}

.latest-issue-container {
  max-width: 80rem;
  display: flex;
  flex-direction: row; 
  align-items: flex-start; 
  gap: 13rem; 
  width: 100%;
  /*box-shadow: 0 4px 6px rgba(0,0,0,0.1);*/
  transition: all 0.3s ease;
}
.latest-issue-container:hover .magazine-image {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.issue-content {
  max-width: 60%; 
  text-align: left;
  color: #3B0B1E;
}

.issue-cover {
  flex-shrink: 0;
  width: 35%; 
  position: sticky;
  top: 2rem; 
}

.issue-cover:hover .cover-image {
  transform: scale(1.05);
  filter: brightness(0.7);
}


.cover-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .latest-issue-container {
    flex-direction: column;
  }
  
  .issue-content {
    max-width: 100%;
  }
  
  .issue-cover {
    width: 100%;
    margin-top: 2rem;
  }
}

.article-item {
  padding: 10px;
}

/* Previous Issues Section */
.previous-issues-section {
  position: relative;
  background-color: #FDEFF4;
  border-top-left-radius: 20% 50%;
  transform: scale(1);
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 0rem;
  min-height: 20vh;
  min-width: 100vw;
  background-size: cover;
  background-repeat: no-repeat;
}
.previous-issues-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 150%; 
  height: 100%;
  background-color: #ffd1bf;
  border-top-left-radius: 18% 90%;
}

body {
    margin: 0;
    padding: 0;
}

.box {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-gap: 10px;
    margin: 0 auto;
    padding-left: 5rem;
    padding-bottom: 4rem;
}

.card {
    position: relative;
    width: 300px;
    height: 400px;
    background: #fff;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.card:before,
.card:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: #fff;
    transition: 0.5s;
    z-index: -1;
}

.card:hover:before {
    transform: rotate(20deg);
    box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.card:hover:after {
    transform: rotate(10deg);
    box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.card .imgBx {
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: 10px;
    right: 10px;
    background: #222;
    transition: 0.5s;
    z-index: 1;
}

.card:hover .imgBx {
    bottom: 80px;
}

.card .imgBx img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .details {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 60px;
    text-align: center;
}

.card .details h2 {
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 20px;
    color: #7C014E;
    text-transform: uppercase;
}

.card .details h2 span {
    font-weight: 500;
    font-size: 16px;
    color: #864261;
    display: block;
    margin-top: 5px;
}

@media (max-width: 1000px) {
    body {
        display: flex;
        flex-direction: column;
    }
    
    .card {
        position: relative;
        width: 105px;
        height: 160px;
    }
    
    .card .imgBx {
        top: 3px;
        left: 3px;
        bottom: 3px;
        right: 3px;
    }
    
    .card .details {
        position: absolute;
        left: 3px;
        right: 3px;
        bottom: 3px;
        height: 15px;
        text-align: center;
    }
    
    .card .details h2 {
        margin: 0;
        padding: 0;
        font-weight: 600;
        font-size: 7px;
        color: #7C014E;
        text-transform: uppercase;
    }
    
    .card .details h2 span {
        font-weight: 500;
        font-size: 5px;
        color: #864261;
        display: block;
        margin-top: 2px;
    }
}


/* -------- Tablets (min-width: 601px to max-width: 991px) -------- */
@media (max-width: 991px) and (min-width: 601px) {
  .hero-section {
    flex-direction: column;
    padding: 3rem 2rem;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    max-width: 90%;
    text-align: center;
  }

  h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 20px;
    max-width: 90%;
  }

  .rotated-gif {
    width: 400px;
    height: auto;
    padding-left: 0rem;
  }

  .latest-issue-section {
    padding: 6rem 1.5rem;
  }

  .latest-issue-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .issue-content {
    max-width: 90%;
    font-size: 18px;
  }

  .issue-cover {
    width: 100%;
    max-width: 350px;
    position: static;
  }

  .box {
    padding-left: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .card {
    width: 200px;
    height: 270px;
  }

  .card .details h2 {
    font-size: 14px;
  }

  .card .details h2 span {
    font-size: 12px;
  }
}

/* -------- Phones (max-width: 600px) -------- */
@media (max-width: 600px) {
  .hero-section {
    flex-direction: column;
    padding: 2.5rem 1rem;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  h1 {
    font-size: 26px;
  }

  .hero-content p {
    font-size: 16px;
    max-width: 95%;
  }

  .rotated-gif {
    width: 250px;
    height: auto;
    margin: 0 auto;
    padding-left: 0rem;
  }

  .latest-issue-section {
    padding: 5rem 1rem;
  }

  .latest-issue-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .issue-content {
    max-width: 100%;
    font-size: 16px;
    text-align: center;
  }

  .issue-cover {
    width: 100%;
    max-width: 280px;
    position: static;
  }

  .box {
    padding-left: 1rem;
    padding-bottom: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .card {
    width: 160px;
    height: 230px;
  }

  .card .details h2 {
    font-size: 12px;
  }

  .card .details h2 span {
    font-size: 10px;
  }

  .previous-issues-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    background-size: cover;
    background-position: center;
    background-color: #ffd1bf; /* peach rectangle */
    border-top-left-radius: 90% 10%;
    
  }
}
